package com.ffcc.fitness.order.pojo.vo;

import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
public class OrderVO {
    private Long orderId;
    private Long tradeId;
    private Long buyerId;
    private Long sellerId;
    private String equipmentName;
    private Integer quantity;
    private BigDecimal price;
    private BigDecimal totalAmount;
    private Status status;
    private LocalDateTime createTime;
    private LocalDateTime updateTime;

    public enum Status {
        PENDING("订单已创建，待卖家确认"),
        COMPLETED("交易完成（线下支付）"),
        DELIVERED("卖家已确认送达");

        private final String description;

        Status(String description) {
            this.description = description;
        }

        public String getDescription() {
            return description;
        }
    }
}
